package com.mimiwang.animal.mapper;

import com.mimiwang.animal.entity.Animal;
import com.mimiwang.animal.vo.AnimalInfoVo;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/4/18 14:15
 */

@Repository
public interface AnimalMapper {

    List<Animal> selectAllAnimal();
    List<Animal> selectAllAnimalBySchool(long schoolId,long campusId,long areaId);
    Animal selectAnimalById(long id);
    AnimalInfoVo selectAnimalVoById(long id);

    @MapKey("campus_id")
    List<Map<String,Integer>> selectAnimalNumBySchool(long schoolId,long campusId);

}
